package cn.dnui_zll731.dnuifood_731zlll.service;
import java.util.List;
import cn.dnui_zll731.dnuifood_731zlll.bean.CommentsBean;
import cn.dnui_zll731.dnuifood_731zlll.bean.FoodBean;

import cn.dnui_zll731.dnuifood_731zlll.bean.FoodInfoBean;
import cn.dnui_zll731.dnuifood_731zlll.bean.Result;
import cn.dnui_zll731.dnuifood_731zlll.bean.isCollected;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

public interface FoodService {
    @GET("getFoodByShop.do")//食物id
    Call<List<FoodBean>> getFoodByShop(
            @Query("shop_id") String shop_id);

    @GET("isCollected.do")
    Call<isCollected> isCollected(   //判断店铺或者菜品收藏情况
                                     @Query("user_id") String user_id,
                                     @Query("shop_food_id") String shop_food_id,
                                     @Query("flag") String flag);
    @GET("userCollectShop.do")   //用户收藏的店铺
    Call<Result> userCollectShop(
            @Query("user_id") String user_id,
            @Query("shop_id") String shop_id);

    @GET("getAllCommentsByFood.do")
    Call<List<CommentsBean>> getAllCommentsByFood(
            @Query("food_id") String food_id);
    @GET("getFoodById.do")
    Call<FoodInfoBean> getFoodById(
            @Query("food_id") String food_id);
}
